﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IService
{
    public interface IWhBatchService
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="data">实体</param>
        /// <returns>结果</returns>
        Task<WhBatch> CreateAsync(WhBatch data);

        /// <summary>
        /// 根据ID查询
        /// </summary>
        /// <param name="Id">ID</param>
        /// <returns>用户列表</returns>
        Task<WhBatch> GetByIdAsync(int Id);

        /// <summary>
        /// 查询所有
        /// </summary>
        /// <returns>用户列表</returns>
        Task<List<WhBatch>> GetAllAsync();

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="date">包含更新信息</param>
        Task<int> UpdateAsync(WhBatch date);

        /// <summary>
        /// 根据ID删除
        /// </summary>
        /// <param name="Id">ID</param>
        Task<int> DeleteAsync(int Id);
    }
}
